<?php
ini_set('date.timezone','Asia/Shanghai');
//error_reporting(E_ERROR);
require_once '../../include/common.incs.php';
$orderid=$_GET['orderid'];
if($_GET['act']=='GetOrder'){
	$sql="select * from `{$tablepre}orders` where ispay=2 AND orderid='{$orderid}'";
	//echo $sql;
	$result=$db->sql_query($sql);
	if($bd=$db->sql_fetchrow($result)){
 		$status=3;
	}else{
		$status=0;
	}
	echo $status;
} 
?>